/**
 * 教练注册页面样式 - 优化版
 */
.coach-register-container {
  padding: 16px;
  min-height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

/* 页面标题 - 优化突出显示 */
.coach-register-header {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.coach-register-title {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.coach-register-subtitle {
  font-size: 24px;
  color: #666;
}

/* 表单容器 - 统一卡片样式 */
.coach-register-form {
  background-color: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

/* 表单区块 */
.form-section {
  margin-bottom: 28px;
}

/* 表单标签 */
.form-label {
  font-size: 24px;
  color: #333;
  margin-bottom: 12px;
  display: block;
  font-weight: 500;
}

.required-mark {
  color: #ff4d4f;
  margin-left: 4px;
}

/* 输入框样式 - 统一表单字段 */
.input-field {
  width: 100%;
  height: 66px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 16px;
  box-sizing: border-box;
  font-size: 32px;
  color: #333;
  background-color: #fff;
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  outline: none;
}

.input-field.error {
  border-radius: 5px;
  border: 1px dashed #ff4d4f;
  background-color: #fff9f9;
}

.input-field.error:focus {
  border-radius: 5px;
  border: 1px dashed #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
}

.input-field::placeholder {
  color: #bfbfbf;
}

.input-field:active {
  background-color: #fafafa;
}

.input-hint {
  font-size: 20px;
  color: #999;
  margin-top: 6px;
  display: block;
}

/* 表单字段容器 - 统一间距 */
.form-field-container {
  margin-bottom: 20px;
}

.avatar-upload {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.avatar-upload:active {
  transform: scale(0.95);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-picker-arrow {
  color: #666;
  margin-left: 16px;
}

.register-camera-icon {
  height: 120px;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* 图片上传区域 - 统一设计风格 */
.image-upload-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.image-upload-container {
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fafafa;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-upload-container:active {
  background-color: #f0f0f0;
}

.image-upload-container.error {
  border-radius: 5px;
  background-color: #fff9f9;
  border: 1px dashed #ff4d4f;
}

.image-upload-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid transparent;
  border-radius: 10px;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.image-upload-container:active::before {
  border-color: #1890ff;
}

.id-card-upload {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.id-card-front, .id-card-back {
  flex: 1;
}

.image-upload-placeholder {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.image-upload-container:active .image-upload-placeholder {
  background-color: #e6f7ff;
}

.id-card-upload .image-upload-placeholder {
  height: 90px;
}


.image-upload-container:active .register-camera-icon {
  transform: scale(1.1);
  color: #1890ff;
}

.image-upload-text {
  margin-top: 12px;
  font-size: 20px;
  color: #666;
  text-align: center;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.image-upload-container:active .image-upload-text {
  color: #1890ff;
}

.uploaded-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 身份证图片特定样式，确保占满容器 */
.uploaded-image.id-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.image-upload-container:active .uploaded-image {
  transform: scale(1.02);
}

/* 头像上传优化 - 统一交互效果 */
.avatar-upload {
  cursor: pointer;
}

.avatar-upload:hover {
  border-color: #1890ff;
}

.avatar-upload:active {
  transform: scale(0.95);
}

/* 上传提示文本 */
.register-upload-tip {
  text-align: center;
  margin-top: 20px;
  font-size: 20px;
  color: #999;
  padding: 0 16px;
  margin-bottom: 20px;
}

/* 分隔线 - 统一风格 */
.separator {
  height: 1px;
  background-color: #f0f0f0;
  margin: 24px 0;
}

/* 提交按钮 - 统一按钮样式 */
.register-submit-button {
  width: 100%;
  height: fit-content;
  background-color: #1aad19;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 40px;
  font-weight: 600;
  margin-top: 32px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(26, 173, 25, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.register-submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.register-submit-button:active::before {
  left: 100%;
}

.register-submit-button:active {
  background-color: #179b16;
  box-shadow: 0 2px 6px rgba(26, 173, 25, 0.2);
  transform: translateY(2px);
}

.register-submit-disabled {
  background-color: #d9d9d9;
  color: #bfbfbf;
  box-shadow: none;
  transform: none;
}

/* 按钮加载状态 */
.register-submit-button.loading {
  background-color: #179b16;
}

/* 错误提示文本 */
.error-message {
  color: #ff4d4f;
  font-size: 18px;
  margin-top: 6px;
  margin-left: 2px;
  line-height: 1.4;
}

/* 提示信息卡片 */
.tip-card {
  background-color: #fff7e6;
  border: 1px solid #ffe58f;
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
}

.tip-title {
  display: flex;
  align-items: center;
  color: #e6a23c;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 20px;
}

.tip-content {
  color: #666;
  font-size: 16px;
}

/* 选择器样式 */
.picker-field {
  width: 100%;
  height: 66px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 16px;
  box-sizing: border-box;
  font-size: 32px;
  color: #333;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

/* 选择器包装器 - 解决点击边框无法触发的问题 */
.picker-field-wrapper {
  width: 100%;
  height: 66px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 16px;
  box-sizing: border-box;
  font-size: 32px;
  color: #333;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  cursor: pointer;
}

.picker-field-wrapper:active {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.picker-field-wrapper.error {
  border-radius: 5px;
  border: 1px dashed #ff4d4f;
  background-color: #fff9f9;
}

.picker-text {
  color: #333;
  font-size: 28px;
}

.picker-placeholder {
  color: #bfbfbf;
  font-size: 28px;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  color: #999;
}

.picker-field:active {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.picker-field.error {
  background-color: #fff9f9;
  border: 1px dashed #ff4d4f;
  border-radius: 5px;
}

/* 性别选择器样式优化 */
.radio-group {
  display: flex;
  gap: 24px;
  padding: 8px 0;
}

.radio-group.error {
  border-radius: 5px;
  background-color: #fff9f9;
  border: 1px dashed #ff4d4f;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.radio-item:active {
  background-color: #f0f0f0;
}

.radio-circle {
  width: 24px;
  height: 24px;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.radio-item.active .radio-circle {
  border-color: #1aad19;
  background-color: #1aad19;
}

.radio-item.active .radio-circle::after {
  content: '';
  width: 12px;
  height: 12px;
  background-color: #fff;
  border-radius: 50%;
}

/* 加载状态 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}